import request from '@/utils/request'

// 查询英雄字典列表
export function listHero(query) {
  return request({
    url: '/lol/hero/list',
    method: 'get',
    params: query
  })
}
export function noPageList(query) {
  return request({
    url: '/lol/hero/noPageList',
    method: 'get',
    params: query
  })
}
export function listAll() {
  return request({
    url: '/lol/hero/listAll',
    method: 'get',
  })
}

// 查询英雄字典详细
export function getHero(id) {
  return request({
    url: '/lol/hero/' + id,
    method: 'get'
  })
}

// 新增英雄字典
export function addHero(data) {
  return request({
    url: '/lol/hero',
    method: 'post',
    data: data
  })
}

// 修改英雄字典
export function updateHero(data) {
  return request({
    url: '/lol/hero',
    method: 'put',
    data: data
  })
}

// 删除英雄字典
export function delHero(id) {
  return request({
    url: '/lol/hero/' + id,
    method: 'delete'
  })
}
